package pwd.allen;
import com.alibaba.nacos.spring.context.annotation.config.EnableNacosConfig;
import com.alibaba.nacos.spring.context.annotation.config.NacosPropertySource;
import com.alibaba.nacos.spring.context.annotation.config.NacosPropertySources;
import org.apache.dubbo.config.spring.context.annotation.EnableDubbo;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

/**
 * @author pwdan
 * @create 2019-10-06 9:39
 **/
@EnableDubbo
@SpringBootApplication
@EnableNacosConfig
//@EnableNacosConfig(readConfigTypeFromDataId = false)
@NacosPropertySources({@NacosPropertySource(dataId = "dubbo-config", groupId = "dubbo", autoRefreshed = true)})
public class BootConfigMain {

    public static void main(String[] args) {
        SpringApplication.run(BootConfigMain.class, args);
    }
}
